#pragma once

#include <string>

class Config
{
	private:
		std::string serverIP;
		std::string maxNumberOfPlayers;
		std::string localPlayerName;

		unsigned int screenWidth;
		unsigned int screenHeight;
		bool screenFullscreen;
		
		bool isServer;
	public:
		Config();
		//~Config();
		bool loadConfig();
		bool saveConfig();
		bool getIsServer();
		
		std::string getLocalPlayerName();
		bool setLocalPlayerName(std::string passedName);

		unsigned int getScreenWidth();
		unsigned int getScreenHeight();
		bool getScreenFullscreen();
		void setResolution(const unsigned int width, const unsigned int height);
		
		std::string getServerIP();
};

extern Config globalConfig;
